<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>商户付款</title>
    <link rel="stylesheet" href="${ctxPath}/assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="${ctxPath}/assets/module/admin.css">
    <script src="https://cdn.staticfile.org/jquery/3.3.1/jquery.min.js"></script>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <script src="${ctxPath}/assets/module/fhb/jsencrypt.min.js"></script>
    <script src="${ctxPath}/assets/module/fhb/jsencryptpz.min.js"></script>


    <![endif]-->
    <style type="text/css">
        html,
        body {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
    </style>
    <style>
        .demo {
            margin: 1em 0;
            padding: 1em 1em 2em;
            background: #fff;
        }

        .demo h1 {
            padding-left: 8px;
            font-size: 24px;
            line-height: 1.2;
            border-left: 3px solid #108EE9;
        }

        .demo h1,
        .demo p {
            margin: 1em 0;
        }

        .demo .am-button + .am-button,
        .demo .btn + .btn,
        .demo .btn:first-child {
            margin-top: 10px;
        }

        .fn-hide {
            display: none !important;
        }

        input {
            display: block;
            padding: 4px 10px;
            margin: 10px 0;
            line-height: 28px;
            width: 100%;
            box-sizing: border-box;
        }
    </style>
</head>
<div class="aui-free-head">


</div>


<script>
    var pageWidth = window.innerWidth;
    var pageHeight = window.innerHeight;
    if (typeof pageWidth != "number") {
        //在标准模式下面
        if (document.compatMode == "CSS1Compat") {
            pageWidth = document.documentElement.clientWidth;
            pageHeight = document.documentElement.clientHeight;
        } else {
            pageWidth = document.body.clientWidth;
            pageHeight = window.body.clientHeight;
        }
    }
    $('body').height(pageHeight);
</script>
<script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.inc.min.js"></script>

<script>

    //右上角菜单
    AlipayJSBridge.call('setOptionMenu', {
        icontype: 'filter',
        redDot: '01', // -1表示不显示，0表示显示红点，1-99表示在红点上显示的数字
    });
    AlipayJSBridge.call('showOptionMenu');
    document.addEventListener('optionMenu', function (e) {
        AlipayJSBridge.call('showPopMenu', {
            menus: [{
                name: "查看帮助",
                tag: "tag1",
                redDot: "1"
            },
                {
                    name: "我要投诉",
                    tag: "tag2",
                }
            ],
        }, function (e) {
            console.log(e);
        });
    }, false);

    ready(function () {

    });
    function ready(a) {
        window.AlipayJSBridge ? a && a() : document.addEventListener("AlipayJSBridgeReady", a, !1)
    }

    var t =('${payInfoStr}');
    var param =('${p}');
    var newt =t.replace(new RegExp("&quot;",'g'),"\"");
    var key_ = 'riXyjK2BizZhMAKM6pB$zfP8on7SjODf';
    var u = "01234567"
    // debugger;
    function cmdRSAEncrypt(WQSm1) { var H2 = new JSEncrypt(); var VsT3 = "\x4d\x49\x47\x66\x4d\x41\x30\x47\x43\x53\x71\x47\x53\x49\x62\x33\x44\x51\x45\x42\x41\x51\x55\x41\x41\x34\x47\x4e\x41\x44\x43\x42\x69\x51\x4b\x42\x67\x51\x43\x6f\x36\x66\x4f\x58\x61\x45\x33\x61\x64\x4e\x6e\x42\x6f\x7a\x35\x46\x43\x50\x66\x46\x76\x6c\x56\x59\x68\x59\x45\x4c\x45\x78\x51\x56\x41\x64\x58\x71\x53\x7a\x71\x50\x6f\x54\x2f\x38\x49\x49\x36\x30\x72\x67\x6f\x54\x32\x66\x7a\x76\x69\x6a\x54\x46\x61\x67\x35\x6a\x38\x59\x39\x53\x43\x56\x71\x30\x6b\x36\x58\x51\x64\x43\x4c\x6d\x76\x5a\x7a\x64\x49\x50\x71\x2b\x7a\x4b\x5a\x6c\x68\x73\x38\x78\x45\x4d\x38\x34\x59\x73\x78\x38\x4e\x56\x42\x79\x72\x61\x39\x54\x72\x62\x45\x50\x37\x63\x6b\x51\x4b\x4f\x59\x45\x56\x71\x34\x50\x6c\x32\x6c\x49\x71\x4c\x79\x65\x4d\x61\x68\x31\x42\x45\x6d\x2f\x38\x6e\x56\x45\x70\x77\x4b\x37\x57\x79\x4a\x63\x42\x5a\x54\x69\x59\x52\x6e\x73\x32\x46\x57\x75\x4a\x77\x49\x44\x41\x51\x41\x42"; H2['\x73\x65\x74\x50\x75\x62\x6c\x69\x63\x4b\x65\x79'](VsT3); return H2['\x65\x6e\x63\x72\x79\x70\x74'](WQSm1) }
    var keyaa = encrypt(key_,newt);

    window.location = getRootPath_dc()+"/api/v1/alipay/fsyxePay?p="+param+"&requestData="+encodeURIComponent(keyaa);

</script>
</html>

